<?php
namespace app\common\services;

use yii\helpers\Url;
use \app\common\components\BaseWebController;
class BaseService extends BaseWebController
{
	public static $_error_msg=null;
	public static $_error_code=null;
	public static function _err($msg='',$code=-1){
		self::$_error_msg=$msg;
		self::$_error_code=$code;
		return false;
	}
	public static function getErrorMsg(){
		return self::$_error_msg;
	}
	public static function getErrorCode(){
		return self::$_error_code;
	}
	 public static function getLastErrorMsg(){
        return self::$_error_msg?self::$_error_msg:"";
    }
}